<?php

namespace App\Service\Third;

use App\Model\Ocpc360Search;
use App\Service\BaseService;

class Search360AdService extends BaseService
{
    public function handle()
    {
        $params = $this->request->all();

        log_info('360搜索广告监测链接===='.json_encode($params));

        if (Ocpc360Search::existsQhclickid($params['qhclickid'] ?? '')) {
            return 1;
        }

        return Ocpc360Search::addLog($params);
    }
}